+function(f){var c=function(a,b){this.inState=this.$element=this.hoverState=this.timeout=this.enabled=this.options=this.type=null;this.init("tooltip",a,b)};c.TRANSITION_DURATION=150;c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'\x3cdiv class\x3d"tooltip" role\x3d"tooltip"\x3e\x3cdiv class\x3d"tooltip-arrow"\x3e\x3c/div\x3e\x3cdiv class\x3d"tooltip-inner"\x3e\x3c/div\x3e\x3c/div\x3e',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}}; c.prototype.init=function(a,b,d){this.enabled=!0;this.type=a;this.$element=f(b);this.options=this.getOptions(d);this.$viewport=this.options.viewport&&f(f.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport);this.inState={click:!1,hover:!1,focus:!1};if(this.$element[0]instanceof document.constructor&&!this.options.selector)throw Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!"); a=this.options.trigger.split(" ");for(b=a.length;b--;)if(d=a[b],"click"==d)this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this));else if("manual"!=d){var g="hover"==d?"mouseleave":"focusout";this.$element.on(("hover"==d?"mouseenter":"focusin")+"."+this.type,this.options.selector,f.proxy(this.enter,this));this.$element.on(g+"."+this.type,this.options.selector,f.proxy(this.leave,this))}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}): this.fixTitle()};c.prototype.getDefaults=function(){return c.DEFAULTS};c.prototype.getOptions=function(a){a=f.extend({},this.getDefaults(),this.$element.data(),a);a.delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay});return a};c.prototype.getDelegateOptions=function(){var a={},b=this.getDefaults();this._options&&f.each(this._options,function(d,g){b[d]!=g&&(a[d]=g)});return a};c.prototype.enter=function(a){var b=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type); b||(b=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,b));a instanceof f.Event&&(b.inState["focusin"==a.type?"focus":"hover"]=!0);if(b.tip().hasClass("in")||"in"==b.hoverState)b.hoverState="in";else{clearTimeout(b.timeout);b.hoverState="in";if(!b.options.delay||!b.options.delay.show)return b.show();b.timeout=setTimeout(function(){"in"==b.hoverState&&b.show()},b.options.delay.show)}};c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0; return!1};c.prototype.leave=function(a){var b=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type);b||(b=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,b));a instanceof f.Event&&(b.inState["focusout"==a.type?"focus":"hover"]=!1);if(!b.isInStateTrue()){clearTimeout(b.timeout);b.hoverState="out";if(!b.options.delay||!b.options.delay.hide)return b.hide();b.timeout=setTimeout(function(){"out"==b.hoverState&&b.hide()},b.options.delay.hide)}}; c.prototype.show=function(){var a=f.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(a);var b=f.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(!a.isDefaultPrevented()&&b){var d=this;a=this.tip();b=this.getUID(this.type);this.setContent();a.attr("id",b);this.$element.attr("aria-describedby",b);this.options.animation&&a.addClass("fade");b="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]): this.options.placement;var g=/\s?auto?\s?/i,h=g.test(b);h&&(b=b.replace(g,"")||"top");a.detach().css({top:0,left:0,display:"block"}).addClass(b).data("bs."+this.type,this);this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);g=this.getPosition();var l=a[0].offsetWidth,k=a[0].offsetHeight;if(h){h=b;var m=this.getPosition(this.$viewport);b="bottom"==b&&g.bottom+k>m.bottom?"top":"top"==b&&g.top-km.width?"left":"left"==b&&g.left-lk.top+k.height&&(h.top= k.top+k.height-b)):(g=b.left-l,b=b.left+l+d,gk.right&&(h.left=k.left+k.width-b));return h};c.prototype.getTitle=function(){var a=this.$element,b=this.options;return a.attr("data-original-title")||("function"==typeof b.title?b.title.call(a[0]):b.title)};c.prototype.getUID=function(a){do a+=~~(1E6*Math.random());while(document.getElementById(a));return a};c.prototype.tip=function(){if(!this.$tip&&(this.$tip=f(this.options.template),1!=this.$tip.length))throw Error(this.type+ " `template` option must consist of exactly 1 top-level element!");return this.$tip};c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};c.prototype.enable=function(){this.enabled=!0};c.prototype.disable=function(){this.enabled=!1};c.prototype.toggleEnabled=function(){this.enabled=!this.enabled};c.prototype.toggle=function(a){var b=this;a&&(b=f(a.currentTarget).data("bs."+this.type),b||(b=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+ this.type,b)));a?(b.inState.click=!b.inState.click,b.isInStateTrue()?b.enter(b):b.leave(b)):b.tip().hasClass("in")?b.leave(b):b.enter(b)};c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout);this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type);a.$tip&&a.$tip.detach();a.$tip=null;a.$arrow=null;a.$viewport=null;a.$element=null})};var e=f.fn.tooltip;f.fn.tooltip=function(a){return this.each(function(){var b=f(this),d=b.data("bs.tooltip"),g="object"==typeof a&&a;if(d|| !/destroy|hide/.test(a))if(d||b.data("bs.tooltip",d=new c(this,g)),"string"==typeof a)d[a]()})};f.fn.tooltip.Constructor=c;f.fn.tooltip.noConflict=function(){f.fn.tooltip=e;return this}}(jQuery); +function(f){var c=function(a,b){this.init("popover",a,b)};if(!f.fn.tooltip)throw Error("Popover requires tooltip.js");c.DEFAULTS=f.extend({},f.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'\x3cdiv class\x3d"popover" role\x3d"tooltip"\x3e\x3cdiv class\x3d"arrow"\x3e\x3c/div\x3e\x3ch3 class\x3d"popover-title"\x3e\x3c/h3\x3e\x3cdiv class\x3d"popover-content"\x3e\x3c/div\x3e\x3c/div\x3e'});c.prototype=f.extend({},f.fn.tooltip.Constructor.prototype);c.prototype.constructor= c;c.prototype.getDefaults=function(){return c.DEFAULTS};c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),d=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b);a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof d?"html":"append":"text"](d);a.removeClass("fade top bottom left right in");a.find(".popover-title").html()||a.find(".popover-title").hide()};c.prototype.hasContent=function(){return this.getTitle()||this.getContent()}; c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)};c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=f.fn.popover;f.fn.popover=function(a){return this.each(function(){var b=f(this),d=b.data("bs.popover"),g="object"==typeof a&&a;if(d||!/destroy|hide/.test(a))if(d||b.data("bs.popover",d=new c(this,g)),"string"==typeof a)d[a]()})};f.fn.popover.Constructor= c;f.fn.popover.noConflict=function(){f.fn.popover=e;return this}}(jQuery); (function(){0<$(".cq-wcm-edit").length||($.fn.popover.Constructor.prototype.recalculatePosition=function(){var c=this.tip();if(c.is(":visible")){var e="function"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,b=a.test(e);b&&(e=e.replace(a,"")||"top");c.addClass(e);a=this.getPosition();var d=c[0].offsetWidth,g=c[0].offsetHeight;if(b){b=e;var h=this.getPosition(this.$viewport);e="bottom"==e&&a.bottom+g>h.bottom?"top":"top"== e&&a.top-gh.width?"left":"left"==e&&a.left-de?(h=0,globalUtil.isSmall()?(0<$(this.$element).closest("ol").length||d< e?(20c)if(d=0,globalUtil.isSmall()){0<$(this).closest("ol").length|| g